<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="${hostUrl}/static/layui/css/layui.css" media="all">
    <script src="${hostUrl}/static/layui/layui.js"></script>
    <script>
        layui.use(['laydate','layer','jquery','form'], function(){
            var laydate = layui.laydate;
            var layer = layui.layer;
            var $ = layui.jquery;
            var form = layui.form;

            //日期插件
            $(".datetime").each(function(){
                laydate.render({
                    elem: this, //指定元素  表示当前的元素
                    type: 'datetime', //date日期  time时间  year年  month月份
                    theme: '#009688'  //主题  颜色改变
                });
            })
        });

    </script>
</head>
<body style="padding:20px">

    <form action="${hostUrl}/user/history" method="post">
        <div class="layui-inline">
            <label class="layui-form-label">开始时间：</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input datetime" name="startTime"placeholder="请输入开始时间" value="${(searchDTO.startTime)!""}">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">结束时间：</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input datetime" name="endTime" placeholder="请输入结束时间" value="${(searchDTO.endTime)!""}">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">关键字：</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" name="keyword" placeholder="请输入搜索关键字" older="" value="${(searchDTO.keyword)!""}">
            </div>
        </div>
        &nbsp;&nbsp;
        <div class="layui-inline" >
            <div class="layui-input-inline">
                <button type="submit" class="layui-btn" >
                    <i class="layui-icon">&#xe615;</i>
                </button>
            </div>
        </div>
    </form>

<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
    <legend>操作历史·时间线</legend>
</fieldset>
    <#if opList?? && (opList?size > 0) >
        <ul class="layui-timeline">
        <#list opList as op>
            <li class="layui-timeline-item">
                <i class="layui-icon layui-timeline-axis">
                    &#xe68c;
                </i>
                <div class="layui-timeline-content layui-text">
                    <div class="layui-timeline-title">
                        ${op.operateTime?string('yyyy-MM-dd HH:mm:ss')}
                        <br/>${(op.content)!"无记录？"}
                    </div>
                </div>
            </li>
        </#list>
        </ul>
    </#if>
</body>
</html>